package com.his.dictuserdef.dao;

import com.his.dictuserdef.entity.DictUserdefCateLink;
import com.his.dictuserdef.entity.DictUserdefCateLink_Detailed;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DictUserdefCateLinkMapper {
    int deleteByPrimaryKey(String id);
    int insert(DictUserdefCateLink record);
    int insertSelective(DictUserdefCateLink record);
    DictUserdefCateLink selectByPrimaryKey(String id);
    int updateByPrimaryKeySelective(DictUserdefCateLink record);
    int updateByPrimaryKey(DictUserdefCateLink record);
    //================自定义功能=======================

    /**
     *通过分类ID查询目录信息
     */
    List<DictUserdefCateLink_Detailed> selectAll(String cateid);

    /**
     * 通过分类ID删除所有关联目录配置
     */
    int deleteByCateId(String cateId);
}